﻿namespace PinusTools.Consts
{
    public class MsgConst
    {
        public const int PKG_HEAD_BYTES = 4;
        public const int MSG_FLAG_BYTES = 1;
        public const int MSG_ROUTE_CODE_BYTES = 2;
        public const int MSG_ID_MAX_BYTES = 5;
        public const int MSG_ROUTE_LEN_BYTES = 1;

        public const int MSG_ROUTE_CODE_MAX = 0xffff;

        public const int MSG_COMPRESS_ROUTE_MASK = 0x1;
        public const int MSG_TYPE_MASK = 0x7;
    }
}